/* jshint esversion: 6 */
import VueRouter from "vue-router";

import home from "./component/tabbarComponent/home.vue";
import member from "./component/tabbarComponent/member.vue";
import shopcar from "./component/tabbarComponent/shopcar.vue";
import search from "./component/tabbarComponent/search.vue";

import newList from "./component/news/newList.vue";
import newInfo from "./component/news/newInfo.vue";

import photoList from "./component/photo/photoList.vue";
import photoInfo from "./component/photo/photoInfo.vue";

import shopList from "./component/shop/shopList.vue";
import shop from "./component/shop/shop.vue";
import shopDesc from "./component/shop/shopDesc.vue";
import shopContent from "./component/shop/shopContent.vue";


var router = new VueRouter({
    routes: [
        { path: "/", redirect: "/home" },
        { path: "/home", component: home },
        { path: "/member", component: member },
        { path: "/shopingcar", component: shopcar },
        { path: "/search", component: search },
        { path: "/home/newList", component: newList },
        { path: "/home/newList/:id", component: newInfo },
        { path: "/home/photoList", component: photoList },
        { path: "/home/photoList/:id", component: photoInfo },
        { path: "/home/shopList", component: shopList },
        { path: "/home/shopList/:id", name: 'goodInfo', component: shop },
        { path: "/home/shopDesc/:id", name: 'goodDesc', component: shopDesc },
        { path: "/home/shopContent/:id", name: 'goodContent', component: shopContent },
    ],
    linkActiveClass: "mui-active"
});

export default router;